package mmap

// Mmap 映射虚拟内存页
type Mmap []byte

// New 创建内存
func (m *Mmap) New(size int) (err error) {
	*m, err = mmap(0, 0, size)
	return
}

// Delete 释放内存
func (m *Mmap) Delete() error {
	return munmap(*m)
}
